# -*- coding: utf -8 -*-
##def frec(l1, x, n):
##    '''
##    frec - devolve uma lista com n elementos x
##    x   - o elemento a repetir
##    n	- numero de repeticoes
##    '''
##    if not n:
##        return l1
##    else:
##        return [x] + frec(l1, x, n-1)
##l2 = frec ([], 'Bu ', 5)
##print l2

#ex. 1
import math
notas = [19, 19, 18, 16, 16, 12, 16, 16, 16, 17]
it = iter(notas)
somaNotas = 0.0
for i in range(10):
    somaNotas += it.next()
print "Média: ", somaNotas / 10.0


